{% extends "common/base.html" %}

{% block title %}控制台 - {{ block.Super }}{% endblock %}

{% block content %}
<style>
.sys-name {
    width: 180px !important;
}
</style>

<div class="row">
    <div class="col-lg-12">
        <div class="row">
            <div class="col-lg-12">
                <ol class="breadcrumb">
                    <li><a href="/">控制台</a></li>
                    <li class="active"><span>首页</span></li>
                </ol>
                <h1>控制台</h1>
            </div>
        </div>

        <div class="row">
            <div class="col-lg-12">
                <div class="main-box clearfix">
                    <header class="main-box-header clearfix">
                        <h2>系统信息</h2>
                    </header>
                    
                    <div class="main-box-body clearfix">
                        <div class="table-responsive">
                            <table class="table table-striped table-hover">
                                <thead>
                                    <tr>
                                        <th class="sys-name">
                                            <span>名称</span>
                                        </th>
                                        <th class="sys-content">
                                            <span>内容</span>
                                        </th>
                                    </tr>
                                </thead>
                                
                                <tbody>
                                    <tr>
                                        <td class="sys-name">
                                            系统版本
                                        </td>
                                        <td class="sys-content">
                                            {{ conf.App.Appname }} v{{ conf.App.Version }}
                                        </td>
                                    </tr>
                                    <tr>
                                        <td class="sys-name">
                                            开发调试
                                        </td>
                                        <td class="sys-content">
                                            {% if conf.App.Debug %}
                                                <span class="label label-success">开启</span>
                                            {% else %}
                                                <span class="label label-default">禁用</span>
                                            {% endif %}
                                        </td>
                                    </tr>
                                    <tr>
                                        <td class="sys-name">
                                            系统时区
                                        </td>
                                        <td class="sys-content">
                                            {{ conf.App.TimeZone }}
                                        </td>
                                    </tr>
                                    <tr>
                                        <td class="sys-name">
                                            运行端口
                                        </td>
                                        <td class="sys-content">
                                            {{ conf.Server.Address }}
                                        </td>
                                    </tr>
                                    <tr>
                                        <td class="sys-name">
                                            运行文件
                                        </td>
                                        <td class="sys-content">
                                            {{ run_path }}
                                        </td>
                                    </tr>
                                    <tr>
                                        <td class="sys-name">
                                            文件管理根目录
                                        </td>
                                        <td class="sys-content">
                                            {{ conf.File.Path }}
                                        </td>
                                    </tr>
                                    <tr>
                                        <td class="sys-name">
                                            系统时间
                                        </td>
                                        <td class="sys-content">
                                            {{ nowTime().ToDateTimeString() }}
                                        </td>
                                    </tr>
                                    <tr>
                                        <td class="sys-name">
                                            开始运行时间
                                        </td>
                                        <td class="sys-content">
                                            {{ startTime }}
                                        </td>
                                    </tr>
                                </tbody>
                            </table>
                        </div>
                    </div>
                </div>
            </div>
        
        </div>

    </div>
</div>
{% endblock %}

{% block script %}
{{ block.Super }}

<script type="text/javascript">
;(function($) {
    "use strict";
    
    $(".left-nav-dashboard").addClass("active");
})(jQuery);
</script>
{% endblock %}